package show.lmm.demo.springboot_aot.view.response;

import lombok.Data;

/**
 * 查询资源 response
 */
@Data
public class GetResourceResponse extends BaseResponse<GetResourceResponse.Resource> {

    public GetResourceResponse(String resource) {
        super(new Resource(resource));
    }

    /**
     * 资源
     */
    @Data
    public static class Resource {
        /**
         * 资源内容
         */
        String content;

        public Resource(String content) {
            this.content = content;
        }
    }
}
